# -*- coding: utf-8 -*-
# created by Src - 一路好时光

#函数的各种参数

#形参、实参
#默认参数
#关键参数
#非固定参数

#函数
def calc(x,y):#x,y为形参
    res = x**y
    print(res)

a=5
b=4
calc(a,b)#a,b为实参

def stu_register(name,age,country,course):
    print("------注册学生信息-------")
    print("name：",name)
    print("age：",age)
    print("country：",country)
    print("course：",course)

stu_register("src1",22,"CN","linux")
stu_register("src2",18,"CN","linux")
stu_register("src3",21,"CN","linux")



def stu_register_default(name,age,course,country="CN"):
    print("------注册学生信息-------")
    print("name：",name)
    print("age：",age)
    print("country：",country)
    print("course：",course)

stu_register_default("src1",22,"linux")
stu_register_default("src2",18,"linux",country="MG")
stu_register_default("src2",18,"linux","DD")
stu_register_default("src3",21,"linux")

